package com.example.demo;


import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import org.springframework.cache.annotation.EnableCaching;

//import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.data.redis.core.RedisTemplate;

@SpringBootApplication//这个包含了配置文件的扫描等等
//@ServletComponentScan//有这个才会扫描注解(过滤器那个),跟comfiguration下的那个SpringmucConfig一样,存在一个即可
@EnableCaching//开启springcache
//@EnableEurekaClient  // 或 @EnableDiscoveryClient（通用注解）
@EnableDiscoveryClient
@EnableFeignClients
public class DemoApplication {

    public static void main(String[] args) {
        SpringApplication.run(DemoApplication.class, args);
    }

}
